package model;

import java.io.Serializable;

public class CarModel implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private String name;
	private String year;
	private String manufactorer; 
	
	public CarModel(String name, String year, String manufactorer) {
		this.name = name;
		this.year = year;
		this.manufactorer = manufactorer;
	}
	
	@Override
	public String toString() {
		return this.name + "(" + this.year + ")";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getManufactorer() {
		return manufactorer;
	}

	public void setManufactorer(String manufactorer) {
		this.manufactorer = manufactorer;
	}
}
